function openapp() {
	var obj = $fns('login.clean');
	if (obj && obj[0] && obj[0].value == '1') {
		window.open("/app/index.do", "", "Status=1,resizable=1,location=no");
		window.opener = 'anyone';
		window.close();
	} else {
		window.location = "/app/index.do";
	}
}

$(document).addEvent('keyup', function(e) {
	if (e.code == 13 && $fnv('login.userid') != ''
			&& $fnv('login.password') != '') {
		doSubmit('/app/login/login.do');
	}
});
$fn('login.userid').focus();

function loadCode(obj) {
	obj.src = '/common/tools/validate_code.jsp?' + Math.random();
}
